package com.demo.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

// TableName --定义数据库表名
//https://blog.csdn.net/Huang_ZX_259/article/details/122516135
@Data
@TableName("TB_USER")// TableName注解--定义数据库表名
public class UserDo {

    @TableId("ID")// TableId注解--定义主键
    private String id;

    @TableField(value = "NAME")//TableId注解--定义字段名--根据数据库实际字段填写
    private String name;

    @TableField(value = "SICKNAME")
    private String sickName;

    @TableField(value = "AGE")
    private int age;

    @TableField(value = "GENDER")
    private String gender;

    @TableField(value = "BIRTHDAY")
    private Date birthday;
}
